﻿' ******************************************************************************
' ** 
' **  Yahoo! Managed
' **  Written by Marius Häusler 2011
' **  It would be pleasant, if you contact me when you are using this code.
' **  Contact: YahooFinanceManaged@gmail.com
' **  Project Home: http://code.google.com/p/yahoo-finance-managed/
' **  
' ******************************************************************************
' **  
' **  Copyright 2011 Marius Häusler
' **  
' **  Licensed under the Apache License, Version 2.0 (the "License");
' **  you may not use this file except in compliance with the License.
' **  You may obtain a copy of the License at
' **  
' **    http://www.apache.org/licenses/LICENSE-2.0
' **  
' **  Unless required by applicable law or agreed to in writing, software
' **  distributed under the License is distributed on an "AS IS" BASIS,
' **  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
' **  See the License for the specific language governing permissions and
' **  limitations under the License.
' ** 
' ******************************************************************************


Namespace YahooManaged.Finance

    ''' <summary>
    ''' Stores informations of an industry
    ''' </summary>
    ''' <remarks></remarks>
    Public Class IndustryData

        ''' <summary>
        ''' The name of the industry
        ''' </summary>
        ''' <value></value>
        ''' <returns>The name of the industry</returns>
        ''' <remarks></remarks>
        Public Property Name() As String
        ''' <summary>
        ''' The Yahoo ID of the industry
        ''' </summary>
        ''' <value></value>
        ''' <returns>An ID string</returns>
        ''' <remarks></remarks>
        Public Property ID() As Industry
        ''' <summary>
        ''' The companies of the industry
        ''' </summary>
        ''' <value></value>
        ''' <returns>A list of companies</returns>
        ''' <remarks></remarks>
        Public Property Companies() As List(Of CompanyInfoData)

        Public Sub New()
            Me.Companies = New List(Of CompanyInfoData)
        End Sub


        Public Shared Function GetIndustryName(ByVal ind As Industry) As String
            Select Case ind
                Case Industry.Agricultural_Chemicals : Return "Agricultural Chemicals"
                Case Industry.Aluminum : Return "Aluminum"
                Case Industry.Chemicals_Major_Diversified : Return "Chemicals - Major Diversified"
                Case Industry.Copper : Return "Copper"
                Case Industry.Gold : Return "Gold"
                Case Industry.Independent_Oil_And_Gas : Return "Independent Oil & Gas"
                Case Industry.Industrial_Metals_And_Minerals : Return "Industrial Metals & Minerals"
                Case Industry.Major_Integrated_Oil_And_Gas : Return "Major Integrated Oil & Gas"
                Case Industry.Nonmetallic_Mineral_Mining : Return "Nonmetallic Mineral Mining"
                Case Industry.Oil_And_Gas_Drilling_And_Exploration : Return "Oil & Gas Drilling & Exploration"
                Case Industry.Oil_And_Gas_Equipment_And_Services : Return "Oil & Gas Equipment & Services"
                Case Industry.Oil_And_Gas_Pipelines : Return "Oil & Gas Pipelines"
                Case Industry.Oil_And_Gas_Refining_And_Marketing : Return "Oil & Gas Refining & Marketing"
                Case Industry.Silver : Return "Silver"
                Case Industry.Specialty_Chemicals : Return "Specialty Chemicals"
                Case Industry.Steel_And_Iron : Return "Steel & Iron"
                Case Industry.Synthetics : Return "Synthetics"
                Case Industry.Conglomerates : Return "Conglomerates"
                Case Industry.Appliances : Return "Appliances"
                Case Industry.Auto_Manufacturers_Major : Return "Auto Manufacturers - Major"
                Case Industry.Auto_Parts : Return "Auto Parts"
                Case Industry.Beverages_Brewers : Return "Beverages - Brewers"
                Case Industry.Beverages_Soft_Drinks : Return "Beverages - Soft Drinks"
                Case Industry.Beverages_Wineries_And_Distillers : Return "Beverages - Wineries & Distillers"
                Case Industry.Business_Equipment : Return "Business Equipment"
                Case Industry.Cigarettes : Return "Cigarettes"
                Case Industry.Cleaning_Products : Return "Cleaning Products"
                Case Industry.Confectioners : Return "Confectioners"
                Case Industry.Dairy_Products : Return "Dairy Products"
                Case Industry.Electronic_Equipment : Return "Electronic Equipment"
                Case Industry.Farm_Products : Return "Farm Products"
                Case Industry.Food_Major_Diversified : Return "Food - Major Diversified"
                Case Industry.Home_Furnishings_And_Fixtures : Return "Home Furnishings & Fixtures"
                Case Industry.Housewares_And_Accessories : Return "Housewares & Accessories"
                Case Industry.Meat_Products : Return "Meat Products"
                Case Industry.Office_Supplies : Return "Office Supplies"
                Case Industry.Packaging_And_Containers : Return "Packaging & Containers"
                Case Industry.Paper_And_Paper_Products : Return "Paper & Paper Products"
                Case Industry.Personal_Products : Return "Personal Products"
                Case Industry.Photographic_Equipment_And_Supplies : Return "Photographic Equipment & Supplies"
                Case Industry.Processed_And_Packaged_Goods : Return "Processed & Packaged Goods"
                Case Industry.Recreational_Goods_Other : Return "Recreational Goods, Other"
                Case Industry.Recreational_Vehicles : Return "Recreational Vehicles"
                Case Industry.Rubber_And_Plastics : Return "Rubber & Plastics"
                Case Industry.Sporting_Goods : Return "Sporting Goods"
                Case Industry.Textile_Apparel_Clothing : Return "Textile - Apparel Clothing"
                Case Industry.Textile_Apparel_Footwear_And_Accessories : Return "Textile - Apparel Footwear & Accessories"
                Case Industry.Tobacco_Products_Other : Return "Tobacco Products, Other"
                Case Industry.Toys_And_Games : Return "Toys & Games"
                Case Industry.Trucks_And_Other_Vehicles : Return "Trucks & Other Vehicles"
                Case Industry.Accident_And_Health_Insurance : Return "Accident & Health Insurance"
                Case Industry.Asset_Management : Return "Asset Management"
                Case Industry.Closed_End_Fund_Debt : Return "Closed-End Fund - Debt"
                Case Industry.Closed_End_Fund_Equity : Return "Closed-End Fund - Equity"
                Case Industry.Closed_End_Fund_Foreign : Return "Closed-End Fund - Foreign"
                Case Industry.Credit_Services : Return "Credit Services"
                Case Industry.Diversified_Investments : Return "Diversified Investments"
                Case Industry.Foreign_Money_Center_Banks : Return "Foreign Money Center Banks"
                Case Industry.Foreign_Regional_Banks : Return "Foreign Regional Banks"
                Case Industry.Insurance_Brokers : Return "Insurance Brokers"
                Case Industry.Investment_Brokerage_National : Return "Investment Brokerage - National"
                Case Industry.Investment_Brokerage_Regional : Return "Investment Brokerage - Regional"
                Case Industry.Life_Insurance : Return "Life Insurance"
                Case Industry.Money_Center_Banks : Return "Money Center Banks"
                Case Industry.Mortgage_Investment : Return "Mortgage Investment"
                Case Industry.Property_And_Casualty_Insurance : Return "Property & Casualty Insurance"
                Case Industry.Property_Management : Return "Property Management"
                Case Industry.REIT_Diversified : Return "REIT - Diversified"
                Case Industry.REIT_Healthcare_Facilities : Return "REIT - Healthcare Facilities"
                Case Industry.REIT_Hotel_Motel : Return "REIT - Hotel/Motel"
                Case Industry.REIT_Industrial : Return "REIT - Industrial"
                Case Industry.REIT_Office : Return "REIT - Office"
                Case Industry.REIT_Residential : Return "REIT - Residential"
                Case Industry.REIT_Retail : Return "REIT - Retail"
                Case Industry.Real_Estate_Development : Return "Real Estate Development"
                Case Industry.Regional_Mid_Atlantic_Banks : Return "Regional - Mid-Atlantic Banks"
                Case Industry.Regional_Midwest_Banks : Return "Regional - Midwest Banks"
                Case Industry.Regional_Northeast_Banks : Return "Regional - Northeast Banks"
                Case Industry.Regional_Pacific_Banks : Return "Regional - Pacific Banks"
                Case Industry.Regional_Southeast_Banks : Return "Regional - Southeast Banks"
                Case Industry.Regional_Southwest_Banks : Return "Regional - Southwest Banks"
                Case Industry.Savings_And_Loans : Return "Savings & Loans"
                Case Industry.Surety_And_Title_Insurance : Return "Surety & Title Insurance"
                Case Industry.Biotechnology : Return "Biotechnology"
                Case Industry.Diagnostic_Substances : Return "Diagnostic Substances"
                Case Industry.Drug_Delivery : Return "Drug Delivery"
                Case Industry.Drug_Manufacturers_Major : Return "Drug Manufacturers - Major"
                Case Industry.Drug_Manufacturers_Other : Return "Drug Manufacturers - Other"
                Case Industry.Drug_Related_Products : Return "Drug Related Products"
                Case Industry.Drugs_Generic : Return "Drugs - Generic"
                Case Industry.Health_Care_Plans : Return "Health Care Plans"
                Case Industry.Home_Health_Care : Return "Home Health Care"
                Case Industry.Hospitals : Return "Hospitals"
                Case Industry.Long_Term_Care_Facilities : Return "Long-Term Care Facilities"
                Case Industry.Medical_Appliances_And_Equipment : Return "Medical Appliances & Equipment"
                Case Industry.Medical_Instruments_And_Supplies : Return "Medical Instruments & Supplies"
                Case Industry.Medical_Laboratories_And_Research : Return "Medical Laboratories & Research"
                Case Industry.Medical_Practitioners : Return "Medical Practitioners"
                Case Industry.Specialized_Health_Services : Return "Specialized Health Services"
                Case Industry.Aerospace_Defense_Major_Diversified : Return "Aerospace/Defense - Major Diversified"
                Case Industry.Aerospace_Defense_Products_And_Services : Return "Aerospace/Defense Products & Services"
                Case Industry.Cement : Return "Cement"
                Case Industry.Diversified_Machinery : Return "Diversified Machinery"
                Case Industry.Farm_And_Construction_Machinery : Return "Farm & Construction Machinery"
                Case Industry.General_Building_Materials : Return "General Building Materials"
                Case Industry.General_Contractors : Return "General Contractors"
                Case Industry.Heavy_Construction : Return "Heavy Construction"
                Case Industry.Industrial_Electrical_Equipment : Return "Industrial Electrical Equipment"
                Case Industry.Industrial_Equipment_And_Components : Return "Industrial Equipment & Components"
                Case Industry.Lumber_Wood_Production : Return "Lumber, Wood Production"
                Case Industry.Machine_Tools_And_Accessories : Return "Machine Tools & Accessories"
                Case Industry.Manufactured_Housing : Return "Manufactured Housing"
                Case Industry.Metal_Fabrication : Return "Metal Fabrication"
                Case Industry.Pollution_And_Treatment_Controls : Return "Pollution & Treatment Controls"
                Case Industry.Residential_Construction : Return "Residential Construction"
                Case Industry.Small_Tools_And_Accessories : Return "Small Tools & Accessories"
                Case Industry.Textile_Industrial : Return "Textile Industrial"
                Case Industry.Waste_Management : Return "Waste Management"
                Case Industry.Advertising_Agencies : Return "Advertising Agencies"
                Case Industry.Air_Delivery_And_Freight_Services : Return "Air Delivery & Freight Services"
                Case Industry.Air_Services_Other : Return "Air Services, Other"
                Case Industry.Apparel_Stores : Return "Apparel Stores"
                Case Industry.Auto_Dealerships : Return "Auto Dealerships"
                Case Industry.Auto_Parts_Stores : Return "Auto Parts Stores"
                Case Industry.Auto_Parts_Wholesale : Return "Auto Parts Wholesale"
                Case Industry.Basic_Materials_Wholesale : Return "Basic Materials Wholesale"
                Case Industry.Broadcasting_Radio : Return "Broadcasting - Radio"
                Case Industry.Broadcasting_TV : Return "Broadcasting - TV"
                Case Industry.Building_Materials_Wholesale : Return "Building Materials Wholesale"
                Case Industry.Business_Services : Return "Business Services"
                Case Industry.CATV_Systems : Return "CATV Systems"
                Case Industry.Catalog_And_Mail_Order_Houses : Return "Catalog & Mail Order Houses"
                Case Industry.Computers_Wholesale : Return "Computers Wholesale"
                Case Industry.Consumer_Services : Return "Consumer Services"
                Case Industry.Department_Stores : Return "Department Stores"
                Case Industry.Discount_Variety_Stores : Return "Discount, Variety Stores"
                Case Industry.Drug_Stores : Return "Drug Stores"
                Case Industry.Drugs_Wholesale : Return "Drugs Wholesale"
                Case Industry.Education_And_Training_Services : Return "Education & Training Services"
                Case Industry.Electronics_Stores : Return "Electronics Stores"
                Case Industry.Electronics_Wholesale : Return "Electronics Wholesale"
                Case Industry.Entertainment_Diversified : Return "Entertainment - Diversified"
                Case Industry.Food_Wholesale : Return "Food Wholesale"
                Case Industry.Gaming_Activities : Return "Gaming Activities"
                Case Industry.General_Entertainment : Return "General Entertainment"
                Case Industry.Grocery_Stores : Return "Grocery Stores"
                Case Industry.Home_Furnishing_Stores : Return "Home Furnishing Stores"
                Case Industry.Home_Improvement_Stores : Return "Home Improvement Stores"
                Case Industry.Industrial_Equipment_Wholesale : Return "Industrial Equipment Wholesale"
                Case Industry.Jewelry_Stores : Return "Jewelry Stores"
                Case Industry.Lodging : Return "Lodging"
                Case Industry.Major_Airlines : Return "Major Airlines"
                Case Industry.Management_Services : Return "Management Services"
                Case Industry.Marketing_Services : Return "Marketing Services"
                Case Industry.Medical_Equipment_Wholesale : Return "Medical Equipment Wholesale"
                Case Industry.Movie_Production_Theaters : Return "Movie Production, Theaters"
                Case Industry.Music_And_Video_Stores : Return "Music & Video Stores"
                Case Industry.Personal_Services : Return "Personal Services"
                Case Industry.Publishing_Books : Return "Publishing - Books"
                Case Industry.Publishing_Newspapers : Return "Publishing - Newspapers"
                Case Industry.Publishing_Periodicals : Return "Publishing - Periodicals"
                Case Industry.Railroads : Return "Railroads"
                Case Industry.Regional_Airlines : Return "Regional Airlines"
                Case Industry.Rental_And_Leasing_Services : Return "Rental & Leasing Services"
                Case Industry.Research_Services : Return "Research Services"
                Case Industry.Resorts_And_Casinos : Return "Resorts & Casinos"
                Case Industry.Restaurants : Return "Restaurants"
                Case Industry.Security_And_Protection_Services : Return "Security & Protection Services"
                Case Industry.Shipping : Return "Shipping"
                Case Industry.Specialty_Eateries : Return "Specialty Eateries"
                Case Industry.Specialty_Retail_Other : Return "Specialty Retail, Other"
                Case Industry.Sporting_Activities : Return "Sporting Activities"
                Case Industry.Sporting_Goods_Stores : Return "Sporting Goods Stores"
                Case Industry.Staffing_And_Outsourcing_Services : Return "Staffing & Outsourcing Services"
                Case Industry.Technical_Services : Return "Technical Services"
                Case Industry.Toy_And_Hobby_Stores : Return "Toy & Hobby Stores"
                Case Industry.Trucking : Return "Trucking"
                Case Industry.Wholesale_Other : Return "Wholesale, Other"
                Case Industry.Application_Software : Return "Application Software"
                Case Industry.Business_Software_And_Services : Return "Business Software & Services"
                Case Industry.Communication_Equipment : Return "Communication Equipment"
                Case Industry.Computer_Based_Systems : Return "Computer Based Systems"
                Case Industry.Computer_Peripherals : Return "Computer Peripherals"
                Case Industry.Data_Storage_Devices : Return "Data Storage Devices"
                Case Industry.Diversified_Communication_Services : Return "Diversified Communication Services"
                Case Industry.Diversified_Computer_Systems : Return "Diversified Computer Systems"
                Case Industry.Diversified_Electronics : Return "Diversified Electronics"
                Case Industry.Healthcare_Information_Services : Return "Healthcare Information Services"
                Case Industry.Information_And_Delivery_Services : Return "Information & Delivery Services"
                Case Industry.Information_Technology_Services : Return "Information Technology Services"
                Case Industry.Internet_Information_Providers : Return "Internet Information Providers"
                Case Industry.Internet_Service_Providers : Return "Internet Service Providers"
                Case Industry.Internet_Software_And_Services : Return "Internet Software & Services"
                Case Industry.Long_Distance_Carriers : Return "Long Distance Carriers"
                Case Industry.Multimedia_And_Graphics_Software : Return "Multimedia & Graphics Software"
                Case Industry.Networking_And_Communication_Devices : Return "Networking & Communication Devices"
                Case Industry.Personal_Computers : Return "Personal Computers"
                Case Industry.Printed_Circuit_Boards : Return "Printed Circuit Boards"
                Case Industry.Processing_Systems_And_Products : Return "Processing Systems & Products"
                Case Industry.Scientific_And_Technical_Instruments : Return "Scientific & Technical Instruments"
                Case Industry.Security_Software_And_Services : Return "Security Software & Services"
                Case Industry.Semiconductor_Broad_Line : Return "Semiconductor - Broad Line"
                Case Industry.Semiconductor_Integrated_Circuits : Return "Semiconductor - Integrated Circuits"
                Case Industry.Semiconductor_Specialized : Return "Semiconductor - Specialized"
                Case Industry.Semiconductor_Equipment_And_Materials : Return "Semiconductor Equipment & Materials"
                Case Industry.Semiconductor_Memory_Chips : Return "Semiconductor- Memory Chips"
                Case Industry.Technical_And_System_Software : Return "Technical & System Software"
                Case Industry.Telecom_Services_Domestic : Return "Telecom Services - Domestic"
                Case Industry.Telecom_Services_Foreign : Return "Telecom Services - Foreign"
                Case Industry.Wireless_Communications : Return "Wireless Communications"
                Case Industry.Diversified_Utilities : Return "Diversified Utilities"
                Case Industry.Electric_Utilities : Return "Electric Utilities"
                Case Industry.Foreign_Utilities : Return "Foreign Utilities"
                Case Industry.Gas_Utilities : Return "Gas Utilities"
                Case Industry.Water_Utilities : Return "Water Utilities"
                Case Else : Return "N/A"
            End Select
        End Function


    End Class

End Namespace